<template>
  <div class="img-container" :style="style">
    <img style="border-radius: 5px"  :src="props.src" :style="style"  alt="">
  </div>
</template>

<script setup>

import { ref } from 'vue'
import blankImg from '@/assets/img/blank.jpeg'

const props = defineProps(['width', 'height' , 'fit' , 'src']);
const currentSrc = ref(props.src || blankImg)

const style = {
  width: props.width,
  height: props.height,
  objectFit: props.fit,
}

</script>



<style scoped lang="less">

</style>
